package omm.domain;

import java.io.Serializable;

public abstract class PersistentAttributes implements Serializable {

	private static final long serialVersionUID = 1272819053245058098L;
	private Integer id;
	
	public PersistentAttributes() {
		this.id = -1;
	}

	public PersistentAttributes(int id) {
		this.id = id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}
	
	public boolean isNew(){
		return (id==-1);
	}
}